<template>
  <el-card class="Head-Tool">
    <el-row type="flex" justify="space-between">
      <div v-if="$slots.left" class="left-box">
        <i class="el-icon-info" />
        <slot name="left" />
      </div>
      <div class="right-box">
        <slot name="right" />
      </div>
    </el-row>
  </el-card>
</template>

<script>
export default {
  name: 'HeadTool'
}
</script>

<style lang="scss" scoped>
.Head-Tool {
  .left-box {
    background-color: #e6f7ff;
    height: 35px;
    line-height: 35px;
    padding: 0 10px;
    border: 1px solid #91d5ff;
    border-radius: 3px;
    font-size: 14px;
    .el-icon-info {
      color: #409eff;
      margin-right: 14px;
    }
  }
  .right-box {
    flex: 1;
    text-align: right;
  }
}
</style>
